<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
    <div class="layui-card-body">
        <div class="layui-form-item">
            <label class="layui-form-label label-required">时间区间</label>
            <div class="layui-input-block">
                <input data-date-range name="time" required placeholder="请选择时间区间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">打款金额</label>
            <div class="layui-input-block">
                <input type="text" name="price" required value='{$vo.price|default=""}' placeholder="请输入打款金额" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">确认打款时间</label>
            <div class="layui-input-block">
                <input type="text" data-date-input="date" name="evidence_time" required value='{$vo.evidence_time|default="$now_time"}' placeholder="请输入确认打款时间" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">发票类型</label>
            <div class="layui-input-block">
                <select name='invoice_type' class='layui-select'>
                    <!--{foreach [0=>'专票',1=>'普票',2=>'其他'] as $k=>$v}-->
                    <!--{eq name='k' value='$vo.invoice_type|default=0'}-->
                    <option selected value='{$k}'>{$v}</option>
                    <!--{else}-->
                    <option value='{$k}'>{$v}</option>
                    <!--{/eq}-->
                    <!--{/foreach}-->
                </select>
            </div>
        </div>
        <div class="layui-row">
            <label class="layui-form-label think-form-label">支付凭证</label>
            <label class="layui-col-xs8 think-form-group-left">
                <input name="evidence_image" value='{$vo.evidence_image|default=""}' placeholder="请上传支付凭证" class="layui-input">
            </label>
            <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="evidence_image" data-type="png,jpg,gif">
                <i class="layui-icon layui-icon-upload"></i> 上传图片
            </a>
        </div>
        
    </div>

    <div class="hr-line-dashed"></div>
    {notempty name='Think.get.id'}<input type='hidden' value='{$Think.get.id}' name='id'>{/notempty}
    {notempty name='Think.get.wait_pay_price'}<input type='hidden' value='{$Think.get.wait_pay_price}' name='wait_pay_price'>{/notempty}
    {notempty name='Think.get.table'}<input type='hidden' value='{$Think.get.table}' name='table'>{/notempty}
    {notempty name='Think.get.ware_house_id'}<input type='hidden' value='{$Think.get.ware_house_id}' name='ware_house_id'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>

    <script>
    window.form.render();
    </script>

</form>